Package-level declarations

Types

Link copied to clipboard
data class HeadElement(val template: String, val target: HeadTarget? = null)

布局引用的头像模板 ID 和可选目标覆盖。 / A layout's head template ID and optional target override.

Link copied to clipboard
object HeadGlyphs

Build tinted bitmap glyphs; neither the target skin nor its colors enter the resource pack.

Link copied to clipboard
class HeadPixels(face: IntArray, hat: IntArray)

皮肤的 8×8 面部和帽子层快照,与显示尺寸无关;构造时复制像素,调用者不能修改缓存。 An immutable 8×8 face/hat snapshot, independent of display size. Constructor arrays are copied.

Link copied to clipboard
object HeadSkins

非阻塞的玩家皮肤缓存。在线档案只在主线程复制;查询、下载和解码使用有界后台线程池。 Non-blocking player skin cache. Online profiles are copied on the server thread; lookup, download and decoding use bounded workers.

Link copied to clipboard
data class HeadTarget(val type: String = "viewer", val uuid: String? = null, val name: String? = null, val key: String? = null, val script: String? = null, val refresh: Int = 20)

头像目标:当前观看者、固定玩家、布局变量,或返回 Player/UUID/玩家名/null 的 Kether。 Head target: viewer, fixed player, layout variable, or Kether returning a Player/UUID/name/null.

Link copied to clipboard

每个玩家、布局实例和元素独立缓存 Kether 头像目标;读取从不等待脚本。 Caches Kether head targets per viewer/layout instance/element without waiting for a script.

Link copied to clipboard
data class HeadTemplate(val size: Int = 16, val overlay: Boolean = true, val render: String = "flat", val mask: String = "square", val loading: String = "default", val failure: String = "default", val target: HeadTarget = HeadTarget())

可复用的玩家头像外观;布局元素可以覆盖默认目标。 Reusable player-face style; layout elements can override its default target.

Link copied to clipboard

Resource-pack glyphs are shared by every player's skin; only rendered colors vary.

Link copied to clipboard
class SkinPixels(argb: IntArray)

规范化的 64×64 ARGB 皮肤快照;构造时复制,像素读取和图片导出均不泄漏可变缓存。 An immutable normalized 64×64 ARGB skin. Constructor input is copied; exported images own their pixels. Use fromSkin to normalize a decoded 64×32 or 64×64 skin without modifying its source image.

Link copied to clipboard
data class SkinProfile(val uuid: UUID, val textureUrl: String?, val slim: Boolean = false)

可供客户端使用的不可变皮肤档案。textureUrl 是完整皮肤而非面部,null 表示没有自定义纹理;slim 表示 Alex 模型。 Immutable client skin metadata. A null URL means no custom texture; slim selects the Alex model, otherwise Steve/classic. HeadSkins validates supplied URLs and normalizes trusted textures.minecraft.net addresses to HTTPS.